home *** CD-ROM | disk | FTP | other *** search
- .he MAKEDB Convert binary to "DB's" Page #
- .op
- .pl 60
-
- MAKEDB takes input from a file and outputs lines of
- text that contain the decimal value for each byte, separated
- by commas. This is used mostly for entering large arbitrary
- blocks of data to an assembler or for BASIC data statements.
-
- MAKEDB keeps all lines less than 47 characters long,
- so they'll fit on 80 column paper when used with MASM.
- Output is sent to the console, so you'll need to use
- redirection to save the output. The Lattice runtime package
- has built in redirection, so this works even on version 1.xx
- DOS.
-
- If your binary input file contains:
-
- 0000: 00 10 20 c0 ff 00 10 20 c0 ff 00 10 20 c0 ff
-
- The output looks like:
-
- db 0,16,32,192,255,0,16,32,192
- db 255,0,16,32,192,255,0,16,32
- db 192,255
-
- For BASIC, just change the DB's to DATAs.
-
-
- To invoke, type:
-
- MAKEDB <file>
-
-